<?php

namespace app\topics\middle;

class ReplyMiddle extends \app\base\middle\BaseMiddle {


    protected function post() {
        $data = $this->params['data'];
        $data['user_id'] = $this->params['user_id'];
        if (!target('topics/TopicsDetailReply')->saveData('add', $data)) {
            return $this->stop(target('topics/TopicsDetailReply')->getError());
        }
        return $this->run([], '回复主题成功！');
    }


}